tests: Add a test for using the same selector multiple times
authorBenjamin Otte <otte@redhat.com>
Thu, 1 Mar 2012 15:39:52 +0000 (16:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 2 Mar 2012 01:17:09 +0000 (02:17 +0100)
tests/css/parser/Makefile.am
tests/css/parser/doubled.css [new file with mode: 0644]
tests/css/parser/doubled.ref.css [new file with mode: 0644]

index af82581a38faf1f746eeb3be8bf5176136d9b33b..fdce5b980aaa2205b132242d70ac180aeea8b72e 100644 (file)
@@ -263,6 +263,8 @@ EXTRA_DIST += \
        does-not-exist.css \
        does-not-exist.errors \
        does-not-exist.ref.css \
+       doubled.css \
+       doubled.ref.css \
        empty.css \
        enum.css \
        enum.errors \
diff --git a/tests/css/parser/doubled.css b/tests/css/parser/doubled.css
new file mode 100644 (file)
index 0000000..9ac5ae1
--- /dev/null
@@ -0,0 +1,12 @@
+.class.class { color: red; }
+.class { color: red; }
+
+#name#name#name { color: red; }
+#name { color: red; }
+
+:focus:focus { color: red; }
+:focus { color: red; }
+
+:nth-child(even):nth-child(even):nth-child(even) { color: red; }
+:nth-child(even) { color: red; }
+
diff --git a/tests/css/parser/doubled.ref.css b/tests/css/parser/doubled.ref.css
new file mode 100644 (file)
index 0000000..92a6e3e
--- /dev/null
@@ -0,0 +1,31 @@
+.class {
+  color: rgb(255,0,0);
+}
+
+:focus {
+  color: rgb(255,0,0);
+}
+
+:nth-child(even) {
+  color: rgb(255,0,0);
+}
+
+.class.class {
+  color: rgb(255,0,0);
+}
+
+:focus:focus {
+  color: rgb(255,0,0);
+}
+
+:nth-child(even):nth-child(even):nth-child(even) {
+  color: rgb(255,0,0);
+}
+
+#name {
+  color: rgb(255,0,0);
+}
+
+#name#name#name {
+  color: rgb(255,0,0);
+}